<?php
namespace app\admin\model;

use think\Model;

class Message extends Model{
    function deleteMes($id){
        $re=db('message')->where("id=$id")->find();
        if($re){           
            $del=db('message')->where("id=$id")->delete();
            return $del;
        }else{
            return false;
        }
    }
    function deleteAll($arr){
        foreach ($arr as $v){
            $re=db('message')->where("id=$v")->find();
            if($re){
                $del=db('message')->where("id=$v")->delete();
        
            }else{
                return false;
            }
        }
        return $del;
    }
}